import request from '@/utils/request'

// 查询采购合同列表
export function listHtcghtbcxy(query) {
  return request({
    url: '/purchase/contract/htcghtbcxy/list',
    method: 'get',
    params: query
  })
}

// 查询采购合同详细
export function getHtcghtbcxy(htCghtbcxyoid) {
  return request({
    url: '/purchase/contract/htcghtbcxy/' + htCghtbcxyoid,
    method: 'get'
  })
}

// 新增采购合同
export function addHtcghtbcxy(data) {
  return request({
    url: '/purchase/contract/htcghtbcxy',
    method: 'post',
    data: data
  })
}

// 修改采购合同
export function updateHtcghtbcxy(data) {
  return request({
    url: '/purchase/contract/htcghtbcxy',
    method: 'put',
    data: data
  })
}

// 删除采购合同
export function delHtcghtbcxy(htCghtbcxyoid) {
  return request({
    url: '/purchase/contract/htcghtbcxy/' + htCghtbcxyoid,
    method: 'delete'
  })
}
